package org.msd.model;

public enum OIrderform {
    /*
    处理预定功能
     */

    PREDETERMINE(1,"预定"),

    PLACEANORDER(2,"预定加已经下单");
    private int oaanumber;//
    private String state;
     private OIrderform(int oaanumber1,String state2){
        this.oaanumber=oaanumber1;
        this.state=state2;
     }

    public int getOaanumber() {
        return oaanumber;
    }

    public String getState() {
        return state;
    }
    public String getState1(int value){
         OIrderform []str=OIrderform.values();
         /*
         转化成数组
          */
        for (OIrderform oIrderform:str) {
            if (value==oIrderform.getOaanumber()){
                return oIrderform.getState();

            }
        }
        return null;
    }
}
